package org.jason.model.interaction.dtos;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("发送评论")
public class SendCommentDto {

    @ApiModelProperty(hidden = true)
    private Integer userId;

    @ApiModelProperty("文章id")
    @NotNull(message = "文章id不能为空")
    private Integer articleId;

    @ApiModelProperty("评论内容")
    @NotBlank(message = "评论内容不能为空")
    private String comment;
}
